﻿using System;

namespace Wombat.Core.Factories
{
    public interface ISpecialValueFactory
    {
        object GetCorruptValue(Type dataType);
    }

    public class SpecialValueFactory : ISpecialValueFactory
    {
        public object GetCorruptValue(Type dataType)
        {
            if (dataType == typeof (double?) || dataType == typeof (double))
            {
                return double.NaN;
            }
            throw new NotSupportedException();
        }
    }
}